package monopolygame;

public class Player {
    private int id,
                money; //I propose we don't worry about the different represenations of the same amount of money (as compositions of different numbers of bills)
    private String name;
    
    Player(int id, int money, String name) {
        this.id = id;
        this.money = money;
        this.name = name;
    }
    
    public int getId() { return id; }
    public int getMoney() { return money; }
    public String getName() { return name; }
    
    public void setId(int id) { this.id = id; }
    public void setMoney(int money) { this.money = money; }
    public void setName(String name) { this.name = name; }
    
    public void subtractMoney(int i) { money -= i; }
    public void addMoney(int i) { money += i; }
    
    public boolean isBroke() { return money <= 0; }
}
